package com.burgeon.backend.SHOPBACKEND.service;

import com.burgeon.backend.SHOPBACKEND.entity.ShopKf;
import com.burgeon.backend.SHOPBACKEND.entity.WeiKF;
import org.springframework.web.multipart.MultipartFile;

import java.io.UnsupportedEncodingException;
import java.util.ArrayList;

public interface WeChatKFService {
    //获取所有微信小程序客服
    ArrayList<WeiKF> findWeKFAll(String token);
    //添加客服
    void addKF(String token,String kfAccount,String nickName,String password);
    //绑定客服账号
    void bindKF(String token,String kfAccount,String kfWx);
    //设置客服信息
    void updateKF(String token,String kfAccount,String nickName);
    //删除客服
    void DelKF(String token,String kfAccount);
    //设置客服头像
    String addCustomer(MultipartFile file,String kfAccount, String token);

    //生成客服二维码的url;
    String creatWeCodeUrl(String token);

    //新增
    Integer insertOpenId(String openid,String token);

    //列表
    ArrayList<ShopKf> findWeKF(String token) throws UnsupportedEncodingException;

    //删除
    Integer deleteKfById(String token,String id);

}
